import unittest
from Ball import Ball

class Ball_Test(unittest.TestCase):

    def setUp(self):
        """Call before every test case."""
        self.ball = Ball(1, 1, 1, 1, 100, 100)

    def tearDown(self):
        self.ball.__del__()

    def test(self):
        assert self.ball.getRect() == (0, 0, 1, 1), "getRect() not calculating values correctly"

    def testB(self):
        self.ball.setPosition(10, 10)
        assert self.ball.getRect() == (10, 10, 1, 1), "getRect() not calculating values correctly"

if __name__ == "__main__":
    unittest.main()
